html = image2html(bimg, format)
Convert a bufferedimage to html code.
bimg | java.awt.image.BufferedImage | An image with a buffer |
format | string | Possible values: jpg, png, bmp... |
html | string | e.g. <img src="data:image/%s;base64, iVBORw0KGgoAAA...... '></img> |